﻿using System;
using System.ComponentModel;
using System.Numerics;
using TaleWorlds.Core;
using TaleWorlds.GauntletUI;
using TaleWorlds.GauntletUI.BaseTypes;
using TaleWorlds.GauntletUI.Data;
using TaleWorlds.GauntletUI.ExtraWidgets;
using TaleWorlds.Library;
using TaleWorlds.MountAndBlade.GauntletUI.Widgets;
using TaleWorlds.MountAndBlade.GauntletUI.Widgets.Mission;
using TaleWorlds.MountAndBlade.GauntletUI.Widgets.Order;
using TaleWorlds.MountAndBlade.ViewModelCollection.Input;
using TaleWorlds.MountAndBlade.ViewModelCollection.Order;

namespace TaleWorlds.MountAndBlade.GauntletUI.AutoGenerated0
{
	// Token: 0x02000017 RID: 23
	public class OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_5_OrderTroopItem__InheritedPrefab : OrderTroopItemBrushWidget
	{
		// Token: 0x0600044E RID: 1102 RVA: 0x0001F53B File Offset: 0x0001D73B
		public OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_5_OrderTroopItem__InheritedPrefab(UIContext context) : base(context)
		{
		}

		// Token: 0x0600044F RID: 1103 RVA: 0x0001F544 File Offset: 0x0001D744
		public virtual void CreateWidgets()
		{
			this._widget = this;
			this._widget_0 = new GridWidget(base.Context);
			this._widget.AddChild(this._widget_0);
			this._widget_1 = new FillBar(base.Context);
			this._widget.AddChild(this._widget_1);
			this._widget_2 = new ListPanel(base.Context);
			this._widget.AddChild(this._widget_2);
			this._widget_2_0 = new Widget(base.Context);
			this._widget_2.AddChild(this._widget_2_0);
			this._widget_2_1 = new TextWidget(base.Context);
			this._widget_2.AddChild(this._widget_2_1);
			this._widget_3 = new Widget(base.Context);
			this._widget.AddChild(this._widget_3);
			this._widget_3_0 = new Widget(base.Context);
			this._widget_3.AddChild(this._widget_3_0);
			this._widget_3_0_0 = new InputKeyVisualWidget(base.Context);
			this._widget_3_0.AddChild(this._widget_3_0_0);
			this._widget_4 = new SliderWidget(base.Context);
			this._widget.AddChild(this._widget_4);
			this._widget_4_0 = new Widget(base.Context);
			this._widget_4.AddChild(this._widget_4_0);
			this._widget_4_1 = new Widget(base.Context);
			this._widget_4.AddChild(this._widget_4_1);
			this._widget_5 = new Widget(base.Context);
			this._widget.AddChild(this._widget_5);
			this._widget_6 = new ImageIdentifierWidget(base.Context);
			this._widget.AddChild(this._widget_6);
			this._widget_7 = new GridWidget(base.Context);
			this._widget.AddChild(this._widget_7);
			this._widget_8 = new Widget(base.Context);
			this._widget.AddChild(this._widget_8);
			this._widget_8_0 = new ListPanel(base.Context);
			this._widget_8.AddChild(this._widget_8_0);
			this._widget_8_0_0 = new OrderItemButtonWidget(base.Context);
			this._widget_8_0.AddChild(this._widget_8_0_0);
			this._widget_8_0_0_0 = new Widget(base.Context);
			this._widget_8_0_0.AddChild(this._widget_8_0_0_0);
			this._widget_8_0_1 = new FormationMarkerParentWidget(base.Context);
			this._widget_8_0.AddChild(this._widget_8_0_1);
			this._widget_8_0_1_0 = new BrushWidget(base.Context);
			this._widget_8_0_1.AddChild(this._widget_8_0_1_0);
			this._widget_8_0_1_0_0 = new Widget(base.Context);
			this._widget_8_0_1_0.AddChild(this._widget_8_0_1_0_0);
		}

		// Token: 0x06000450 RID: 1104 RVA: 0x0001F824 File Offset: 0x0001DA24
		public virtual void SetIds()
		{
			this._widget_0.Id = "PrimaryColorGrid";
			this._widget_4_0.Id = "Filler";
			this._widget_4_1.Id = "SliderHandle";
			this._widget_5.Id = "SelectionFrame";
			this._widget_8_0_0_0.Id = "Icon";
			this._widget_8_0_1_0.Id = "TeamTypeWidget";
			this._widget_8_0_1_0_0.Id = "FormationTypeMarker";
		}

		// Token: 0x06000451 RID: 1105 RVA: 0x0001F8A4 File Offset: 0x0001DAA4
		public virtual void SetAttributes()
		{
			base.WidthSizePolicy = 0;
			base.HeightSizePolicy = 0;
			base.SuggestedWidth = 116.8f;
			base.SuggestedHeight = 198.4f;
			base.RangedCardBrush = base.Context.GetBrush("Order.Card.Background.Ranged");
			base.MeleeCardBrush = base.Context.GetBrush("Order.Card.Background.Melee");
			base.Brush = base.Context.GetBrush("Order.Card.Background");
			base.MarginTop = 25f;
			base.SelectionFrameWidget = this._widget_5;
			this._widget_0.WidthSizePolicy = 2;
			this._widget_0.HeightSizePolicy = 2;
			this._widget_0.HorizontalAlignment = 1;
			this._widget_0.VerticalAlignment = 1;
			this._widget_0.ColumnCount = 2;
			this._widget_0.DefaultCellHeight = 56f;
			this._widget_0.DefaultCellWidth = 46f;
			this._widget_1.WidthSizePolicy = 1;
			this._widget_1.HeightSizePolicy = 0;
			this._widget_1.SuggestedHeight = 13f;
			this._widget_1.VerticalAlignment = 2;
			this._widget_1.MarginLeft = 16f;
			this._widget_1.MarginRight = 16f;
			this._widget_1.MarginBottom = 18f;
			this._widget_1.MaxAmount = 100;
			this._widget_1.Brush = base.Context.GetBrush("Order.Troop.MoraleFillBar");
			this._widget_1.IsVisible = false;
			this._widget_2.WidthSizePolicy = 2;
			this._widget_2.HeightSizePolicy = 2;
			this._widget_2.MarginLeft = 15f;
			this._widget_2.MarginTop = 10f;
			this._widget_2.StackLayout.LayoutMethod = 0;
			this._widget_2_0.WidthSizePolicy = 0;
			this._widget_2_0.HeightSizePolicy = 0;
			this._widget_2_0.SuggestedWidth = 30f;
			this._widget_2_0.SuggestedHeight = 30f;
			this._widget_2_0.VerticalAlignment = 1;
			this._widget_2_0.Sprite = base.Context.SpriteData.GetSprite("General\\Icons\\Morale@2x");
			this._widget_2_1.WidthSizePolicy = 2;
			this._widget_2_1.HeightSizePolicy = 2;
			this._widget_2_1.MarginLeft = 1f;
			this._widget_2_1.MarginTop = 8f;
			this._widget_2_1.VerticalAlignment = 1;
			this._widget_2_1.Brush = base.Context.GetBrush("Order.Troop.CountText");
			this._widget_2_1.Brush.FontSize = 20;
			this._widget_3.WidthSizePolicy = 2;
			this._widget_3.HeightSizePolicy = 2;
			this._widget_3.HorizontalAlignment = 2;
			this._widget_3.MarginTop = 5f;
			this._widget_3.PositionXOffset = 15f;
			this._widget_3_0.WidthSizePolicy = 2;
			this._widget_3_0.HeightSizePolicy = 2;
			this._widget_3_0_0.WidthSizePolicy = 0;
			this._widget_3_0_0.HeightSizePolicy = 0;
			this._widget_3_0_0.SuggestedWidth = 60f;
			this._widget_3_0_0.SuggestedHeight = 60f;
			this._widget_4.WidthSizePolicy = 0;
			this._widget_4.HeightSizePolicy = 0;
			this._widget_4.SuggestedHeight = 3f;
			this._widget_4.SuggestedWidth = 65f;
			this._widget_4.HorizontalAlignment = 1;
			this._widget_4.VerticalAlignment = 2;
			this._widget_4.MarginBottom = 13f;
			this._widget_4.MarginLeft = 3f;
			this._widget_4.DoNotUpdateHandleSize = true;
			this._widget_4.Filler = this._widget_4_0;
			this._widget_4.Handle = this._widget_4_1;
			this._widget_4.MaxValueFloat = 1f;
			this._widget_4.MinValueFloat = 0f;
			this._widget_4.AlignmentAxis = 0;
			this._widget_4_0.DoNotAcceptEvents = true;
			this._widget_4_0.WidthSizePolicy = 0;
			this._widget_4_0.HeightSizePolicy = 0;
			this._widget_4_0.SuggestedHeight = 3f;
			this._widget_4_0.SuggestedWidth = 100f;
			this._widget_4_0.VerticalAlignment = 2;
			this._widget_4_0.Sprite = base.Context.SpriteData.GetSprite("BlankWhiteSquare_9");
			this._widget_4_1.WidthSizePolicy = 0;
			this._widget_4_1.HeightSizePolicy = 0;
			this._widget_4_1.SuggestedWidth = 2f;
			this._widget_4_1.SuggestedHeight = 2f;
			this._widget_4_1.HorizontalAlignment = 0;
			this._widget_4_1.VerticalAlignment = 1;
			this._widget_4_1.IsVisible = false;
			this._widget_5.WidthSizePolicy = 1;
			this._widget_5.HeightSizePolicy = 1;
			this._widget_5.Sprite = base.Context.SpriteData.GetSprite("order_formation_selector_9");
			this._widget_5.Color = new Color(0f, 1f, 0f, 1f);
			this._widget_5.IsVisible = false;
			this._widget_6.DoNotAcceptEvents = true;
			this._widget_6.WidthSizePolicy = 0;
			this._widget_6.HeightSizePolicy = 0;
			this._widget_6.SuggestedWidth = 31f;
			this._widget_6.SuggestedHeight = 22f;
			this._widget_6.HorizontalAlignment = 1;
			this._widget_6.VerticalAlignment = 0;
			this._widget_6.PositionYOffset = -20f;
			this._widget_7.WidthSizePolicy = 2;
			this._widget_7.HeightSizePolicy = 2;
			this._widget_7.HorizontalAlignment = 0;
			this._widget_7.VerticalAlignment = 2;
			this._widget_7.MarginBottom = 37f;
			this._widget_7.MarginLeft = 17f;
			this._widget_7.ColumnCount = 2;
			this._widget_7.DefaultCellHeight = 20f;
			this._widget_7.DefaultCellWidth = 20f;
			this._widget_8.WidthSizePolicy = 2;
			this._widget_8.HeightSizePolicy = 2;
			this._widget_8.HorizontalAlignment = 1;
			this._widget_8.VerticalAlignment = 2;
			this._widget_8_0.WidthSizePolicy = 2;
			this._widget_8_0.HeightSizePolicy = 0;
			this._widget_8_0.SuggestedHeight = 50f;
			this._widget_8_0.PositionYOffset = 30f;
			this._widget_8_0.StackLayout.LayoutMethod = 0;
			this._widget_8_0_0.WidthSizePolicy = 0;
			this._widget_8_0_0.HeightSizePolicy = 0;
			this._widget_8_0_0.SuggestedWidth = 30f;
			this._widget_8_0_0.SuggestedHeight = 30f;
			this._widget_8_0_0.VerticalAlignment = 1;
			this._widget_8_0_0.IconWidget = this._widget_8_0_0_0;
			this._widget_8_0_0.UpdateChildrenStates = true;
			this._widget_8_0_0.SelectionVisualWidget = (this._widget_8_0_0.FindChild("SelectionVisualWidget") as ImageWidget);
			this._widget_8_0_0.IsEnabled = false;
			this._widget_8_0_0_0.WidthSizePolicy = 1;
			this._widget_8_0_0_0.HeightSizePolicy = 1;
			this._widget_8_0_1.WidthSizePolicy = 2;
			this._widget_8_0_1.HeightSizePolicy = 2;
			this._widget_8_0_1.VerticalAlignment = 1;
			this._widget_8_0_1.FormationTypeMarker = this._widget_8_0_1_0_0;
			this._widget_8_0_1.TeamType = 2;
			this._widget_8_0_1.TeamTypeMarker = this._widget_8_0_1_0;
			this._widget_8_0_1_0.WidthSizePolicy = 0;
			this._widget_8_0_1_0.HeightSizePolicy = 0;
			this._widget_8_0_1_0.SuggestedHeight = 30f;
			this._widget_8_0_1_0.SuggestedWidth = 30f;
			this._widget_8_0_1_0.Brush = base.Context.GetBrush("FormationMarker.TeamType");
			this._widget_8_0_1_0_0.WidthSizePolicy = 1;
			this._widget_8_0_1_0_0.HeightSizePolicy = 1;
			this._widget_8_0_1_0_0.HorizontalAlignment = 1;
		}

		// Token: 0x06000452 RID: 1106 RVA: 0x000200A4 File Offset: 0x0001E2A4
		public virtual void DestroyDataSource()
		{
			if (this._datasource_Root != null)
			{
				this._datasource_Root.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root;
				this._datasource_Root.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root);
				this._widget.PropertyChanged -= this.PropertyChangedListenerOf_widget;
				this._widget.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget;
				this._widget.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget;
				this._widget.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget;
				this._widget.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget;
				this._widget.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget;
				this._widget.intPropertyChanged -= this.intPropertyChangedListenerOf_widget;
				this._widget.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget;
				this._widget.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget;
				this._widget_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_1;
				this._widget_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_1;
				this._widget_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_1;
				this._widget_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_1;
				this._widget_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_1;
				this._widget_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_1;
				this._widget_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_1;
				this._widget_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_1;
				this._widget_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_1;
				this._widget_2_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_2_1;
				this._widget_3.PropertyChanged -= this.PropertyChangedListenerOf_widget_3;
				this._widget_3.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3;
				this._widget_3.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3;
				this._widget_3.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3;
				this._widget_3.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3;
				this._widget_3.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3;
				this._widget_3.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3;
				this._widget_3.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3;
				this._widget_3.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3;
				this._widget_3_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3_0;
				this._widget_4.PropertyChanged -= this.PropertyChangedListenerOf_widget_4;
				this._widget_4.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_4;
				this._widget_4.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_4;
				this._widget_4.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_4;
				this._widget_4.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_4;
				this._widget_4.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_4;
				this._widget_4.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_4;
				this._widget_4.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_4;
				this._widget_4.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_4;
				this._widget_8.PropertyChanged -= this.PropertyChangedListenerOf_widget_8;
				this._widget_8.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8;
				this._widget_8.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8;
				this._widget_8.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8;
				this._widget_8.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8;
				this._widget_8.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8;
				this._widget_8.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8;
				this._widget_8.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8;
				this._widget_8.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8;
				this._widget_8_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8_0_1;
				if (this._datasource_Root_ActiveFormationClasses != null)
				{
					this._datasource_Root_ActiveFormationClasses.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
					for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
					{
						Widget child = this._widget_0.GetChild(i);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child).OnBeforeRemovedChild(child);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)this._widget_0.GetChild(i)).DestroyDataSource();
					}
					this._datasource_Root_ActiveFormationClasses = null;
				}
				if (this._datasource_Root_SelectionKey != null)
				{
					this._datasource_Root_SelectionKey.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
					this._datasource_Root_SelectionKey.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
					this._widget_3_0_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3_0_0;
					this._datasource_Root_SelectionKey = null;
				}
				if (this._datasource_Root_CommanderImageIdentifier != null)
				{
					this._datasource_Root_CommanderImageIdentifier.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._widget_6.PropertyChanged -= this.PropertyChangedListenerOf_widget_6;
					this._widget_6.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_6;
					this._widget_6.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_6;
					this._widget_6.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_6;
					this._widget_6.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_6;
					this._widget_6.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_6;
					this._widget_6.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_6;
					this._widget_6.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_6;
					this._widget_6.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_6;
					this._datasource_Root_CommanderImageIdentifier = null;
				}
				if (this._datasource_Root_ActiveFilters != null)
				{
					this._datasource_Root_ActiveFilters.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
					for (int j = this._widget_7.ChildCount - 1; j >= 0; j--)
					{
						Widget child2 = this._widget_7.GetChild(j);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child2).OnBeforeRemovedChild(child2);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)this._widget_7.GetChild(j)).DestroyDataSource();
					}
					this._datasource_Root_ActiveFilters = null;
				}
				this._datasource_Root = null;
			}
		}

		// Token: 0x06000453 RID: 1107 RVA: 0x00020DE2 File Offset: 0x0001EFE2
		public virtual void SetDataSource(OrderTroopItemVM dataSource)
		{
			this.RefreshDataSource_datasource_Root(dataSource);
		}

		// Token: 0x06000454 RID: 1108 RVA: 0x00020DEB File Offset: 0x0001EFEB
		private void PropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000455 RID: 1109 RVA: 0x00020DF4 File Offset: 0x0001EFF4
		private void boolPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000456 RID: 1110 RVA: 0x00020DFD File Offset: 0x0001EFFD
		private void floatPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000457 RID: 1111 RVA: 0x00020E06 File Offset: 0x0001F006
		private void Vec2PropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000458 RID: 1112 RVA: 0x00020E0F File Offset: 0x0001F00F
		private void Vector2PropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000459 RID: 1113 RVA: 0x00020E18 File Offset: 0x0001F018
		private void doublePropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x0600045A RID: 1114 RVA: 0x00020E21 File Offset: 0x0001F021
		private void intPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x0600045B RID: 1115 RVA: 0x00020E2A File Offset: 0x0001F02A
		private void uintPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x0600045C RID: 1116 RVA: 0x00020E33 File Offset: 0x0001F033
		private void ColorPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x0600045D RID: 1117 RVA: 0x00020E3C File Offset: 0x0001F03C
		private void HandleWidgetPropertyChangeOf_widget(string propertyName)
		{
			if (propertyName == "HasAmmo")
			{
				this._datasource_Root.IsAmmoAvailable = this._widget.HasAmmo;
				return;
			}
			if (propertyName == "CurrentMemberCount")
			{
				this._datasource_Root.CurrentMemberCount = this._widget.CurrentMemberCount;
				return;
			}
			if (propertyName == "IsSelectable")
			{
				this._datasource_Root.IsSelectable = this._widget.IsSelectable;
				return;
			}
			if (propertyName == "IsSelected")
			{
				this._datasource_Root.IsSelected = this._widget.IsSelected;
				return;
			}
			if (propertyName == "FormationClass")
			{
				return;
			}
			if (propertyName == "IsSelectionActive")
			{
				this._datasource_Root.IsSelectionActive = this._widget.IsSelectionActive;
				return;
			}
		}

		// Token: 0x0600045E RID: 1118 RVA: 0x00020F0B File Offset: 0x0001F10B
		private void PropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x0600045F RID: 1119 RVA: 0x00020F14 File Offset: 0x0001F114
		private void boolPropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000460 RID: 1120 RVA: 0x00020F1D File Offset: 0x0001F11D
		private void floatPropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000461 RID: 1121 RVA: 0x00020F26 File Offset: 0x0001F126
		private void Vec2PropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000462 RID: 1122 RVA: 0x00020F2F File Offset: 0x0001F12F
		private void Vector2PropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000463 RID: 1123 RVA: 0x00020F38 File Offset: 0x0001F138
		private void doublePropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000464 RID: 1124 RVA: 0x00020F41 File Offset: 0x0001F141
		private void intPropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000465 RID: 1125 RVA: 0x00020F4A File Offset: 0x0001F14A
		private void uintPropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000466 RID: 1126 RVA: 0x00020F53 File Offset: 0x0001F153
		private void ColorPropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000467 RID: 1127 RVA: 0x00020F5C File Offset: 0x0001F15C
		private void HandleWidgetPropertyChangeOf_widget_1(string propertyName)
		{
			if (propertyName == "CurrentAmount")
			{
				this._datasource_Root.Morale = this._widget_1.CurrentAmount;
				return;
			}
			if (propertyName == "InitialAmount")
			{
				this._datasource_Root.Morale = this._widget_1.InitialAmount;
				return;
			}
		}

		// Token: 0x06000468 RID: 1128 RVA: 0x00020FB1 File Offset: 0x0001F1B1
		private void PropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x06000469 RID: 1129 RVA: 0x00020FBA File Offset: 0x0001F1BA
		private void boolPropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x0600046A RID: 1130 RVA: 0x00020FC3 File Offset: 0x0001F1C3
		private void floatPropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x0600046B RID: 1131 RVA: 0x00020FCC File Offset: 0x0001F1CC
		private void Vec2PropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x0600046C RID: 1132 RVA: 0x00020FD5 File Offset: 0x0001F1D5
		private void Vector2PropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x0600046D RID: 1133 RVA: 0x00020FDE File Offset: 0x0001F1DE
		private void doublePropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x0600046E RID: 1134 RVA: 0x00020FE7 File Offset: 0x0001F1E7
		private void intPropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x0600046F RID: 1135 RVA: 0x00020FF0 File Offset: 0x0001F1F0
		private void uintPropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x06000470 RID: 1136 RVA: 0x00020FF9 File Offset: 0x0001F1F9
		private void ColorPropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x06000471 RID: 1137 RVA: 0x00021004 File Offset: 0x0001F204
		private void HandleWidgetPropertyChangeOf_widget_2_1(string propertyName)
		{
			if (propertyName == "IntText")
			{
				this._datasource_Root.Morale = this._widget_2_1.IntText;
				return;
			}
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.HaveTroops = this._widget_2_1.IsVisible;
				return;
			}
		}

		// Token: 0x06000472 RID: 1138 RVA: 0x00021059 File Offset: 0x0001F259
		private void PropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000473 RID: 1139 RVA: 0x00021062 File Offset: 0x0001F262
		private void boolPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000474 RID: 1140 RVA: 0x0002106B File Offset: 0x0001F26B
		private void floatPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000475 RID: 1141 RVA: 0x00021074 File Offset: 0x0001F274
		private void Vec2PropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000476 RID: 1142 RVA: 0x0002107D File Offset: 0x0001F27D
		private void Vector2PropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000477 RID: 1143 RVA: 0x00021086 File Offset: 0x0001F286
		private void doublePropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000478 RID: 1144 RVA: 0x0002108F File Offset: 0x0001F28F
		private void intPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000479 RID: 1145 RVA: 0x00021098 File Offset: 0x0001F298
		private void uintPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x0600047A RID: 1146 RVA: 0x000210A1 File Offset: 0x0001F2A1
		private void ColorPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x0600047B RID: 1147 RVA: 0x000210AA File Offset: 0x0001F2AA
		private void HandleWidgetPropertyChangeOf_widget_3(string propertyName)
		{
			propertyName == "IsVisible";
		}

		// Token: 0x0600047C RID: 1148 RVA: 0x000210B8 File Offset: 0x0001F2B8
		private void PropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x0600047D RID: 1149 RVA: 0x000210C1 File Offset: 0x0001F2C1
		private void boolPropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x0600047E RID: 1150 RVA: 0x000210CA File Offset: 0x0001F2CA
		private void floatPropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x0600047F RID: 1151 RVA: 0x000210D3 File Offset: 0x0001F2D3
		private void Vec2PropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000480 RID: 1152 RVA: 0x000210DC File Offset: 0x0001F2DC
		private void Vector2PropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000481 RID: 1153 RVA: 0x000210E5 File Offset: 0x0001F2E5
		private void doublePropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000482 RID: 1154 RVA: 0x000210EE File Offset: 0x0001F2EE
		private void intPropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000483 RID: 1155 RVA: 0x000210F7 File Offset: 0x0001F2F7
		private void uintPropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000484 RID: 1156 RVA: 0x00021100 File Offset: 0x0001F300
		private void ColorPropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000485 RID: 1157 RVA: 0x00021109 File Offset: 0x0001F309
		private void HandleWidgetPropertyChangeOf_widget_3_0(string propertyName)
		{
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.HaveTroops = this._widget_3_0.IsVisible;
				return;
			}
		}

		// Token: 0x06000486 RID: 1158 RVA: 0x0002112F File Offset: 0x0001F32F
		private void PropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x06000487 RID: 1159 RVA: 0x00021138 File Offset: 0x0001F338
		private void boolPropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x06000488 RID: 1160 RVA: 0x00021141 File Offset: 0x0001F341
		private void floatPropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x06000489 RID: 1161 RVA: 0x0002114A File Offset: 0x0001F34A
		private void Vec2PropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x0600048A RID: 1162 RVA: 0x00021153 File Offset: 0x0001F353
		private void Vector2PropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x0600048B RID: 1163 RVA: 0x0002115C File Offset: 0x0001F35C
		private void doublePropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x0600048C RID: 1164 RVA: 0x00021165 File Offset: 0x0001F365
		private void intPropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x0600048D RID: 1165 RVA: 0x0002116E File Offset: 0x0001F36E
		private void uintPropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x0600048E RID: 1166 RVA: 0x00021177 File Offset: 0x0001F377
		private void ColorPropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x0600048F RID: 1167 RVA: 0x00021180 File Offset: 0x0001F380
		private void HandleWidgetPropertyChangeOf_widget_4(string propertyName)
		{
			if (propertyName == "ValueFloat")
			{
				this._datasource_Root.AmmoPercentage = this._widget_4.ValueFloat;
				return;
			}
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.IsAmmoAvailable = this._widget_4.IsVisible;
				return;
			}
		}

		// Token: 0x06000490 RID: 1168 RVA: 0x000211D5 File Offset: 0x0001F3D5
		private void PropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000491 RID: 1169 RVA: 0x000211DE File Offset: 0x0001F3DE
		private void boolPropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000492 RID: 1170 RVA: 0x000211E7 File Offset: 0x0001F3E7
		private void floatPropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000493 RID: 1171 RVA: 0x000211F0 File Offset: 0x0001F3F0
		private void Vec2PropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000494 RID: 1172 RVA: 0x000211F9 File Offset: 0x0001F3F9
		private void Vector2PropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000495 RID: 1173 RVA: 0x00021202 File Offset: 0x0001F402
		private void doublePropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000496 RID: 1174 RVA: 0x0002120B File Offset: 0x0001F40B
		private void intPropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000497 RID: 1175 RVA: 0x00021214 File Offset: 0x0001F414
		private void uintPropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000498 RID: 1176 RVA: 0x0002121D File Offset: 0x0001F41D
		private void ColorPropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000499 RID: 1177 RVA: 0x00021226 File Offset: 0x0001F426
		private void HandleWidgetPropertyChangeOf_widget_8(string propertyName)
		{
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.IsTargetRelevant = this._widget_8.IsVisible;
				return;
			}
		}

		// Token: 0x0600049A RID: 1178 RVA: 0x0002124C File Offset: 0x0001F44C
		private void PropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x0600049B RID: 1179 RVA: 0x00021255 File Offset: 0x0001F455
		private void boolPropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x0600049C RID: 1180 RVA: 0x0002125E File Offset: 0x0001F45E
		private void floatPropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x0600049D RID: 1181 RVA: 0x00021267 File Offset: 0x0001F467
		private void Vec2PropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x0600049E RID: 1182 RVA: 0x00021270 File Offset: 0x0001F470
		private void Vector2PropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x0600049F RID: 1183 RVA: 0x00021279 File Offset: 0x0001F479
		private void doublePropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x060004A0 RID: 1184 RVA: 0x00021282 File Offset: 0x0001F482
		private void intPropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x060004A1 RID: 1185 RVA: 0x0002128B File Offset: 0x0001F48B
		private void uintPropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x060004A2 RID: 1186 RVA: 0x00021294 File Offset: 0x0001F494
		private void ColorPropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x060004A3 RID: 1187 RVA: 0x0002129D File Offset: 0x0001F49D
		private void HandleWidgetPropertyChangeOf_widget_8_0(string propertyName)
		{
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.HasTarget = this._widget_8_0.IsVisible;
				return;
			}
		}

		// Token: 0x060004A4 RID: 1188 RVA: 0x000212C3 File Offset: 0x0001F4C3
		private void PropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x060004A5 RID: 1189 RVA: 0x000212CC File Offset: 0x0001F4CC
		private void boolPropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x060004A6 RID: 1190 RVA: 0x000212D5 File Offset: 0x0001F4D5
		private void floatPropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x060004A7 RID: 1191 RVA: 0x000212DE File Offset: 0x0001F4DE
		private void Vec2PropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x060004A8 RID: 1192 RVA: 0x000212E7 File Offset: 0x0001F4E7
		private void Vector2PropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x060004A9 RID: 1193 RVA: 0x000212F0 File Offset: 0x0001F4F0
		private void doublePropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x060004AA RID: 1194 RVA: 0x000212F9 File Offset: 0x0001F4F9
		private void intPropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x060004AB RID: 1195 RVA: 0x00021302 File Offset: 0x0001F502
		private void uintPropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x060004AC RID: 1196 RVA: 0x0002130B File Offset: 0x0001F50B
		private void ColorPropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x060004AD RID: 1197 RVA: 0x00021314 File Offset: 0x0001F514
		private void HandleWidgetPropertyChangeOf_widget_8_0_0(string propertyName)
		{
			if (propertyName == "OrderIconID")
			{
				this._datasource_Root.CurrentOrderIconId = this._widget_8_0_0.OrderIconID;
				return;
			}
		}

		// Token: 0x060004AE RID: 1198 RVA: 0x0002133A File Offset: 0x0001F53A
		private void PropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x060004AF RID: 1199 RVA: 0x00021343 File Offset: 0x0001F543
		private void boolPropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x060004B0 RID: 1200 RVA: 0x0002134C File Offset: 0x0001F54C
		private void floatPropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x060004B1 RID: 1201 RVA: 0x00021355 File Offset: 0x0001F555
		private void Vec2PropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x060004B2 RID: 1202 RVA: 0x0002135E File Offset: 0x0001F55E
		private void Vector2PropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x060004B3 RID: 1203 RVA: 0x00021367 File Offset: 0x0001F567
		private void doublePropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x060004B4 RID: 1204 RVA: 0x00021370 File Offset: 0x0001F570
		private void intPropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x060004B5 RID: 1205 RVA: 0x00021379 File Offset: 0x0001F579
		private void uintPropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x060004B6 RID: 1206 RVA: 0x00021382 File Offset: 0x0001F582
		private void ColorPropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x060004B7 RID: 1207 RVA: 0x0002138B File Offset: 0x0001F58B
		private void HandleWidgetPropertyChangeOf_widget_8_0_1(string propertyName)
		{
			if (propertyName == "MarkerType")
			{
				this._datasource_Root.CurrentTargetFormationType = this._widget_8_0_1.MarkerType;
				return;
			}
		}

		// Token: 0x060004B8 RID: 1208 RVA: 0x000213B1 File Offset: 0x0001F5B1
		private void PropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x060004B9 RID: 1209 RVA: 0x000213BA File Offset: 0x0001F5BA
		private void boolPropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x060004BA RID: 1210 RVA: 0x000213C3 File Offset: 0x0001F5C3
		private void floatPropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x060004BB RID: 1211 RVA: 0x000213CC File Offset: 0x0001F5CC
		private void Vec2PropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x060004BC RID: 1212 RVA: 0x000213D5 File Offset: 0x0001F5D5
		private void Vector2PropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x060004BD RID: 1213 RVA: 0x000213DE File Offset: 0x0001F5DE
		private void doublePropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x060004BE RID: 1214 RVA: 0x000213E7 File Offset: 0x0001F5E7
		private void intPropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x060004BF RID: 1215 RVA: 0x000213F0 File Offset: 0x0001F5F0
		private void uintPropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x060004C0 RID: 1216 RVA: 0x000213F9 File Offset: 0x0001F5F9
		private void ColorPropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x060004C1 RID: 1217 RVA: 0x00021404 File Offset: 0x0001F604
		private void HandleWidgetPropertyChangeOf_widget_3_0_0(string propertyName)
		{
			if (propertyName == "KeyID")
			{
				this._datasource_Root_SelectionKey.KeyID = this._widget_3_0_0.KeyID;
				return;
			}
			if (propertyName == "IsVisible")
			{
				this._datasource_Root_SelectionKey.IsVisible = this._widget_3_0_0.IsVisible;
				return;
			}
		}

		// Token: 0x060004C2 RID: 1218 RVA: 0x00021459 File Offset: 0x0001F659
		private void PropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x060004C3 RID: 1219 RVA: 0x00021462 File Offset: 0x0001F662
		private void boolPropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x060004C4 RID: 1220 RVA: 0x0002146B File Offset: 0x0001F66B
		private void floatPropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x060004C5 RID: 1221 RVA: 0x00021474 File Offset: 0x0001F674
		private void Vec2PropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x060004C6 RID: 1222 RVA: 0x0002147D File Offset: 0x0001F67D
		private void Vector2PropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x060004C7 RID: 1223 RVA: 0x00021486 File Offset: 0x0001F686
		private void doublePropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x060004C8 RID: 1224 RVA: 0x0002148F File Offset: 0x0001F68F
		private void intPropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x060004C9 RID: 1225 RVA: 0x00021498 File Offset: 0x0001F698
		private void uintPropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x060004CA RID: 1226 RVA: 0x000214A1 File Offset: 0x0001F6A1
		private void ColorPropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x060004CB RID: 1227 RVA: 0x000214AA File Offset: 0x0001F6AA
		private void HandleWidgetPropertyChangeOf_widget_6(string propertyName)
		{
			if (propertyName == "AdditionalArgs")
			{
				return;
			}
			if (propertyName == "ImageId")
			{
				return;
			}
			propertyName == "ImageTypeCode";
		}

		// Token: 0x060004CC RID: 1228 RVA: 0x000214D4 File Offset: 0x0001F6D4
		private void ViewModelPropertyChangedListenerOf_datasource_Root(object sender, PropertyChangedEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060004CD RID: 1229 RVA: 0x000214E2 File Offset: 0x0001F6E2
		private void ViewModelPropertyChangedWithValueListenerOf_datasource_Root(object sender, PropertyChangedWithValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060004CE RID: 1230 RVA: 0x000214F0 File Offset: 0x0001F6F0
		private void ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root(object sender, PropertyChangedWithBoolValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060004CF RID: 1231 RVA: 0x000214FE File Offset: 0x0001F6FE
		private void ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root(object sender, PropertyChangedWithIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060004D0 RID: 1232 RVA: 0x0002150C File Offset: 0x0001F70C
		private void ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root(object sender, PropertyChangedWithFloatValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060004D1 RID: 1233 RVA: 0x0002151A File Offset: 0x0001F71A
		private void ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root(object sender, PropertyChangedWithUIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060004D2 RID: 1234 RVA: 0x00021528 File Offset: 0x0001F728
		private void ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root(object sender, PropertyChangedWithColorValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060004D3 RID: 1235 RVA: 0x00021536 File Offset: 0x0001F736
		private void ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root(object sender, PropertyChangedWithDoubleValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060004D4 RID: 1236 RVA: 0x00021544 File Offset: 0x0001F744
		private void ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root(object sender, PropertyChangedWithVec2ValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x060004D5 RID: 1237 RVA: 0x00021554 File Offset: 0x0001F754
		private void HandleViewModelPropertyChangeOf_datasource_Root(string propertyName)
		{
			if (propertyName == "ActiveFormationClasses")
			{
				this.RefreshDataSource_datasource_Root_ActiveFormationClasses(this._datasource_Root.ActiveFormationClasses);
				return;
			}
			if (propertyName == "SelectionKey")
			{
				this.RefreshDataSource_datasource_Root_SelectionKey(this._datasource_Root.SelectionKey);
				return;
			}
			if (propertyName == "CommanderImageIdentifier")
			{
				this.RefreshDataSource_datasource_Root_CommanderImageIdentifier(this._datasource_Root.CommanderImageIdentifier);
				return;
			}
			if (propertyName == "ActiveFilters")
			{
				this.RefreshDataSource_datasource_Root_ActiveFilters(this._datasource_Root.ActiveFilters);
				return;
			}
			if (propertyName == "IsAmmoAvailable")
			{
				this._widget.HasAmmo = this._datasource_Root.IsAmmoAvailable;
				this._widget_4.IsVisible = this._datasource_Root.IsAmmoAvailable;
				return;
			}
			if (propertyName == "CurrentMemberCount")
			{
				this._widget.CurrentMemberCount = this._datasource_Root.CurrentMemberCount;
				return;
			}
			if (propertyName == "IsSelectable")
			{
				this._widget.IsSelectable = this._datasource_Root.IsSelectable;
				return;
			}
			if (propertyName == "IsSelected")
			{
				this._widget.IsSelected = this._datasource_Root.IsSelected;
				return;
			}
			if (propertyName == "OrderOfBattleFormationClass")
			{
				return;
			}
			if (propertyName == "IsSelectionActive")
			{
				this._widget.IsSelectionActive = this._datasource_Root.IsSelectionActive;
				return;
			}
			if (propertyName == "Morale")
			{
				this._widget_1.CurrentAmount = this._datasource_Root.Morale;
				this._widget_1.InitialAmount = this._datasource_Root.Morale;
				this._widget_2_1.IntText = this._datasource_Root.Morale;
				return;
			}
			if (propertyName == "HaveTroops")
			{
				this._widget_2_1.IsVisible = this._datasource_Root.HaveTroops;
				this._widget_3_0.IsVisible = this._datasource_Root.HaveTroops;
				return;
			}
			if (propertyName == "CanUseShortcuts")
			{
				return;
			}
			if (propertyName == "AmmoPercentage")
			{
				this._widget_4.ValueFloat = this._datasource_Root.AmmoPercentage;
				return;
			}
			if (propertyName == "IsTargetRelevant")
			{
				this._widget_8.IsVisible = this._datasource_Root.IsTargetRelevant;
				return;
			}
			if (propertyName == "HasTarget")
			{
				this._widget_8_0.IsVisible = this._datasource_Root.HasTarget;
				return;
			}
			if (propertyName == "CurrentOrderIconId")
			{
				this._widget_8_0_0.OrderIconID = this._datasource_Root.CurrentOrderIconId;
				return;
			}
			if (propertyName == "CurrentTargetFormationType")
			{
				this._widget_8_0_1.MarkerType = this._datasource_Root.CurrentTargetFormationType;
				return;
			}
		}

		// Token: 0x060004D6 RID: 1238 RVA: 0x00021801 File Offset: 0x0001FA01
		private void ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060004D7 RID: 1239 RVA: 0x0002180F File Offset: 0x0001FA0F
		private void ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060004D8 RID: 1240 RVA: 0x0002181D File Offset: 0x0001FA1D
		private void ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithBoolValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060004D9 RID: 1241 RVA: 0x0002182B File Offset: 0x0001FA2B
		private void ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060004DA RID: 1242 RVA: 0x00021839 File Offset: 0x0001FA39
		private void ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithFloatValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060004DB RID: 1243 RVA: 0x00021847 File Offset: 0x0001FA47
		private void ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithUIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060004DC RID: 1244 RVA: 0x00021855 File Offset: 0x0001FA55
		private void ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithColorValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060004DD RID: 1245 RVA: 0x00021863 File Offset: 0x0001FA63
		private void ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithDoubleValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060004DE RID: 1246 RVA: 0x00021871 File Offset: 0x0001FA71
		private void ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithVec2ValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x060004DF RID: 1247 RVA: 0x00021880 File Offset: 0x0001FA80
		private void HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(string propertyName)
		{
			if (propertyName == "KeyID")
			{
				this._widget_3_0_0.KeyID = this._datasource_Root_SelectionKey.KeyID;
				return;
			}
			if (propertyName == "IsVisible")
			{
				this._widget_3_0_0.IsVisible = this._datasource_Root_SelectionKey.IsVisible;
				return;
			}
		}

		// Token: 0x060004E0 RID: 1248 RVA: 0x000218D5 File Offset: 0x0001FAD5
		private void ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060004E1 RID: 1249 RVA: 0x000218E3 File Offset: 0x0001FAE3
		private void ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060004E2 RID: 1250 RVA: 0x000218F1 File Offset: 0x0001FAF1
		private void ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithBoolValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060004E3 RID: 1251 RVA: 0x000218FF File Offset: 0x0001FAFF
		private void ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060004E4 RID: 1252 RVA: 0x0002190D File Offset: 0x0001FB0D
		private void ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithFloatValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060004E5 RID: 1253 RVA: 0x0002191B File Offset: 0x0001FB1B
		private void ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithUIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060004E6 RID: 1254 RVA: 0x00021929 File Offset: 0x0001FB29
		private void ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithColorValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060004E7 RID: 1255 RVA: 0x00021937 File Offset: 0x0001FB37
		private void ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithDoubleValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060004E8 RID: 1256 RVA: 0x00021945 File Offset: 0x0001FB45
		private void ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithVec2ValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x060004E9 RID: 1257 RVA: 0x00021954 File Offset: 0x0001FB54
		private void HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(string propertyName)
		{
			if (propertyName == "AdditionalArgs")
			{
				this._widget_6.AdditionalArgs = this._datasource_Root_CommanderImageIdentifier.AdditionalArgs;
				return;
			}
			if (propertyName == "Id")
			{
				this._widget_6.ImageId = this._datasource_Root_CommanderImageIdentifier.Id;
				return;
			}
			if (propertyName == "ImageTypeCode")
			{
				this._widget_6.ImageTypeCode = this._datasource_Root_CommanderImageIdentifier.ImageTypeCode;
				return;
			}
		}

		// Token: 0x060004EA RID: 1258 RVA: 0x000219D0 File Offset: 0x0001FBD0
		public void OnList_datasource_Root_ActiveFormationClassesChanged(object sender, ListChangedEventArgs e)
		{
			switch (e.ListChangedType)
			{
			case 0:
				for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child2).SetDataSource(null);
					this._widget_0.RemoveChild(child2);
				}
				return;
			case 1:
				for (int j = 0; j < this._datasource_Root_ActiveFormationClasses.Count; j++)
				{
					OrderTroopItemFormationClassVM bindingObject = this._datasource_Root_ActiveFormationClasses[j];
					this._widget_0.FindChild((Widget widget) => widget.GetComponent<GeneratedWidgetData>().Data == bindingObject).SetSiblingIndex(j, false);
				}
				return;
			case 2:
			{
				OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate(base.Context);
				GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate);
				OrderTroopItemFormationClassVM orderTroopItemFormationClassVM = this._datasource_Root_ActiveFormationClasses[e.NewIndex];
				generatedWidgetData.Data = orderTroopItemFormationClassVM;
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.AddComponent(generatedWidgetData);
				this._widget_0.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate, e.NewIndex);
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.CreateWidgets();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetIds();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetAttributes();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetDataSource(orderTroopItemFormationClassVM);
				return;
			}
			case 3:
			{
				Widget child3 = this._widget_0.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child3).OnBeforeRemovedChild(child3);
				return;
			}
			case 4:
			{
				Widget child4 = this._widget_0.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child4).SetDataSource(null);
				this._widget_0.RemoveChild(child4);
				break;
			}
			case 5:
				break;
			default:
				return;
			}
		}

		// Token: 0x060004EB RID: 1259 RVA: 0x00021B6C File Offset: 0x0001FD6C
		public void OnList_datasource_Root_ActiveFiltersChanged(object sender, ListChangedEventArgs e)
		{
			switch (e.ListChangedType)
			{
			case 0:
				for (int i = this._widget_7.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_7.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_7.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child2).SetDataSource(null);
					this._widget_7.RemoveChild(child2);
				}
				return;
			case 1:
				for (int j = 0; j < this._datasource_Root_ActiveFilters.Count; j++)
				{
					OrderTroopItemFilterVM bindingObject = this._datasource_Root_ActiveFilters[j];
					this._widget_7.FindChild((Widget widget) => widget.GetComponent<GeneratedWidgetData>().Data == bindingObject).SetSiblingIndex(j, false);
				}
				return;
			case 2:
			{
				OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate(base.Context);
				GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate);
				OrderTroopItemFilterVM orderTroopItemFilterVM = this._datasource_Root_ActiveFilters[e.NewIndex];
				generatedWidgetData.Data = orderTroopItemFilterVM;
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.AddComponent(generatedWidgetData);
				this._widget_7.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate, e.NewIndex);
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.CreateWidgets();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetIds();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetAttributes();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetDataSource(orderTroopItemFilterVM);
				return;
			}
			case 3:
			{
				Widget child3 = this._widget_7.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child3).OnBeforeRemovedChild(child3);
				return;
			}
			case 4:
			{
				Widget child4 = this._widget_7.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child4).SetDataSource(null);
				this._widget_7.RemoveChild(child4);
				break;
			}
			case 5:
				break;
			default:
				return;
			}
		}

		// Token: 0x060004EC RID: 1260 RVA: 0x00021D08 File Offset: 0x0001FF08
		private void RefreshDataSource_datasource_Root(OrderTroopItemVM newDataSource)
		{
			if (this._datasource_Root != null)
			{
				this._datasource_Root.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root;
				this._datasource_Root.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root);
				this._widget.PropertyChanged -= this.PropertyChangedListenerOf_widget;
				this._widget.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget;
				this._widget.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget;
				this._widget.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget;
				this._widget.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget;
				this._widget.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget;
				this._widget.intPropertyChanged -= this.intPropertyChangedListenerOf_widget;
				this._widget.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget;
				this._widget.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget;
				this._widget_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_1;
				this._widget_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_1;
				this._widget_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_1;
				this._widget_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_1;
				this._widget_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_1;
				this._widget_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_1;
				this._widget_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_1;
				this._widget_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_1;
				this._widget_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_1;
				this._widget_2_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_2_1;
				this._widget_3.PropertyChanged -= this.PropertyChangedListenerOf_widget_3;
				this._widget_3.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3;
				this._widget_3.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3;
				this._widget_3.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3;
				this._widget_3.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3;
				this._widget_3.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3;
				this._widget_3.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3;
				this._widget_3.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3;
				this._widget_3.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3;
				this._widget_3_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3_0;
				this._widget_4.PropertyChanged -= this.PropertyChangedListenerOf_widget_4;
				this._widget_4.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_4;
				this._widget_4.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_4;
				this._widget_4.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_4;
				this._widget_4.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_4;
				this._widget_4.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_4;
				this._widget_4.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_4;
				this._widget_4.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_4;
				this._widget_4.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_4;
				this._widget_8.PropertyChanged -= this.PropertyChangedListenerOf_widget_8;
				this._widget_8.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8;
				this._widget_8.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8;
				this._widget_8.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8;
				this._widget_8.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8;
				this._widget_8.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8;
				this._widget_8.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8;
				this._widget_8.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8;
				this._widget_8.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8;
				this._widget_8_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8_0_1;
				if (this._datasource_Root_ActiveFormationClasses != null)
				{
					this._datasource_Root_ActiveFormationClasses.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
					for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
					{
						Widget child = this._widget_0.GetChild(i);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child).OnBeforeRemovedChild(child);
						Widget child2 = this._widget_0.GetChild(i);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child2).SetDataSource(null);
						this._widget_0.RemoveChild(child2);
					}
					this._datasource_Root_ActiveFormationClasses = null;
				}
				if (this._datasource_Root_SelectionKey != null)
				{
					this._datasource_Root_SelectionKey.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
					this._datasource_Root_SelectionKey.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
					this._widget_3_0_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3_0_0;
					this._datasource_Root_SelectionKey = null;
				}
				if (this._datasource_Root_CommanderImageIdentifier != null)
				{
					this._datasource_Root_CommanderImageIdentifier.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._widget_6.PropertyChanged -= this.PropertyChangedListenerOf_widget_6;
					this._widget_6.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_6;
					this._widget_6.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_6;
					this._widget_6.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_6;
					this._widget_6.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_6;
					this._widget_6.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_6;
					this._widget_6.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_6;
					this._widget_6.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_6;
					this._widget_6.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_6;
					this._datasource_Root_CommanderImageIdentifier = null;
				}
				if (this._datasource_Root_ActiveFilters != null)
				{
					this._datasource_Root_ActiveFilters.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
					for (int j = this._widget_7.ChildCount - 1; j >= 0; j--)
					{
						Widget child3 = this._widget_7.GetChild(j);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child3).OnBeforeRemovedChild(child3);
						Widget child4 = this._widget_7.GetChild(j);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child4).SetDataSource(null);
						this._widget_7.RemoveChild(child4);
					}
					this._datasource_Root_ActiveFilters = null;
				}
				this._datasource_Root = null;
			}
			this._datasource_Root = newDataSource;
			if (this._datasource_Root != null)
			{
				this._datasource_Root.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root;
				this._datasource_Root.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root);
				this._widget.HasAmmo = this._datasource_Root.IsAmmoAvailable;
				this._widget.CurrentMemberCount = this._datasource_Root.CurrentMemberCount;
				this._widget.IsSelectable = this._datasource_Root.IsSelectable;
				this._widget.IsSelected = this._datasource_Root.IsSelected;
				this._widget.IsSelectionActive = this._datasource_Root.IsSelectionActive;
				this._widget.PropertyChanged += this.PropertyChangedListenerOf_widget;
				this._widget.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget;
				this._widget.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget;
				this._widget.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget;
				this._widget.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget;
				this._widget.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget;
				this._widget.intPropertyChanged += this.intPropertyChangedListenerOf_widget;
				this._widget.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget;
				this._widget.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget;
				this._widget_1.CurrentAmount = this._datasource_Root.Morale;
				this._widget_1.InitialAmount = this._datasource_Root.Morale;
				this._widget_1.PropertyChanged += this.PropertyChangedListenerOf_widget_1;
				this._widget_1.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_1;
				this._widget_1.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_1;
				this._widget_1.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_1;
				this._widget_1.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_1;
				this._widget_1.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_1;
				this._widget_1.intPropertyChanged += this.intPropertyChangedListenerOf_widget_1;
				this._widget_1.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_1;
				this._widget_1.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_1;
				this._widget_2_1.IntText = this._datasource_Root.Morale;
				this._widget_2_1.IsVisible = this._datasource_Root.HaveTroops;
				this._widget_2_1.PropertyChanged += this.PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.intPropertyChanged += this.intPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_2_1;
				this._widget_3.PropertyChanged += this.PropertyChangedListenerOf_widget_3;
				this._widget_3.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_3;
				this._widget_3.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_3;
				this._widget_3.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_3;
				this._widget_3.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_3;
				this._widget_3.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_3;
				this._widget_3.intPropertyChanged += this.intPropertyChangedListenerOf_widget_3;
				this._widget_3.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_3;
				this._widget_3.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_3;
				this._widget_3_0.IsVisible = this._datasource_Root.HaveTroops;
				this._widget_3_0.PropertyChanged += this.PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.intPropertyChanged += this.intPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_3_0;
				this._widget_4.ValueFloat = this._datasource_Root.AmmoPercentage;
				this._widget_4.IsVisible = this._datasource_Root.IsAmmoAvailable;
				this._widget_4.PropertyChanged += this.PropertyChangedListenerOf_widget_4;
				this._widget_4.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_4;
				this._widget_4.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_4;
				this._widget_4.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_4;
				this._widget_4.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_4;
				this._widget_4.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_4;
				this._widget_4.intPropertyChanged += this.intPropertyChangedListenerOf_widget_4;
				this._widget_4.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_4;
				this._widget_4.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_4;
				this._widget_8.IsVisible = this._datasource_Root.IsTargetRelevant;
				this._widget_8.PropertyChanged += this.PropertyChangedListenerOf_widget_8;
				this._widget_8.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_8;
				this._widget_8.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_8;
				this._widget_8.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_8;
				this._widget_8.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_8;
				this._widget_8.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_8;
				this._widget_8.intPropertyChanged += this.intPropertyChangedListenerOf_widget_8;
				this._widget_8.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_8;
				this._widget_8.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_8;
				this._widget_8_0.IsVisible = this._datasource_Root.HasTarget;
				this._widget_8_0.PropertyChanged += this.PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.intPropertyChanged += this.intPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0_0.OrderIconID = this._datasource_Root.CurrentOrderIconId;
				this._widget_8_0_0.PropertyChanged += this.PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.intPropertyChanged += this.intPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_1.MarkerType = this._datasource_Root.CurrentTargetFormationType;
				this._widget_8_0_1.PropertyChanged += this.PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.intPropertyChanged += this.intPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_8_0_1;
				this._datasource_Root_ActiveFormationClasses = this._datasource_Root.ActiveFormationClasses;
				if (this._datasource_Root_ActiveFormationClasses != null)
				{
					this._datasource_Root_ActiveFormationClasses.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
					for (int k = 0; k < this._datasource_Root_ActiveFormationClasses.Count; k++)
					{
						OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate(base.Context);
						GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate);
						OrderTroopItemFormationClassVM orderTroopItemFormationClassVM = this._datasource_Root_ActiveFormationClasses[k];
						generatedWidgetData.Data = orderTroopItemFormationClassVM;
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.AddComponent(generatedWidgetData);
						this._widget_0.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate, k);
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.CreateWidgets();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetIds();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetAttributes();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetDataSource(orderTroopItemFormationClassVM);
					}
				}
				this._datasource_Root_SelectionKey = this._datasource_Root.SelectionKey;
				if (this._datasource_Root_SelectionKey != null)
				{
					this._datasource_Root_SelectionKey.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
					this._datasource_Root_SelectionKey.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
					this._widget_3_0_0.KeyID = this._datasource_Root_SelectionKey.KeyID;
					this._widget_3_0_0.IsVisible = this._datasource_Root_SelectionKey.IsVisible;
					this._widget_3_0_0.PropertyChanged += this.PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.intPropertyChanged += this.intPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_3_0_0;
				}
				this._datasource_Root_CommanderImageIdentifier = this._datasource_Root.CommanderImageIdentifier;
				if (this._datasource_Root_CommanderImageIdentifier != null)
				{
					this._datasource_Root_CommanderImageIdentifier.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._widget_6.AdditionalArgs = this._datasource_Root_CommanderImageIdentifier.AdditionalArgs;
					this._widget_6.ImageId = this._datasource_Root_CommanderImageIdentifier.Id;
					this._widget_6.ImageTypeCode = this._datasource_Root_CommanderImageIdentifier.ImageTypeCode;
					this._widget_6.PropertyChanged += this.PropertyChangedListenerOf_widget_6;
					this._widget_6.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_6;
					this._widget_6.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_6;
					this._widget_6.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_6;
					this._widget_6.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_6;
					this._widget_6.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_6;
					this._widget_6.intPropertyChanged += this.intPropertyChangedListenerOf_widget_6;
					this._widget_6.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_6;
					this._widget_6.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_6;
				}
				this._datasource_Root_ActiveFilters = this._datasource_Root.ActiveFilters;
				if (this._datasource_Root_ActiveFilters != null)
				{
					this._datasource_Root_ActiveFilters.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
					for (int l = 0; l < this._datasource_Root_ActiveFilters.Count; l++)
					{
						OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate(base.Context);
						GeneratedWidgetData generatedWidgetData2 = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate);
						OrderTroopItemFilterVM orderTroopItemFilterVM = this._datasource_Root_ActiveFilters[l];
						generatedWidgetData2.Data = orderTroopItemFilterVM;
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.AddComponent(generatedWidgetData2);
						this._widget_7.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate, l);
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.CreateWidgets();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetIds();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetAttributes();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetDataSource(orderTroopItemFilterVM);
					}
				}
			}
		}

		// Token: 0x060004ED RID: 1261 RVA: 0x00023A08 File Offset: 0x00021C08
		private void RefreshDataSource_datasource_Root_ActiveFormationClasses(MBBindingList<OrderTroopItemFormationClassVM> newDataSource)
		{
			if (this._datasource_Root_ActiveFormationClasses != null)
			{
				this._datasource_Root_ActiveFormationClasses.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
				for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child2).SetDataSource(null);
					this._widget_0.RemoveChild(child2);
				}
				this._datasource_Root_ActiveFormationClasses = null;
			}
			this._datasource_Root_ActiveFormationClasses = newDataSource;
			this._datasource_Root_ActiveFormationClasses = this._datasource_Root.ActiveFormationClasses;
			if (this._datasource_Root_ActiveFormationClasses != null)
			{
				this._datasource_Root_ActiveFormationClasses.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
				for (int j = 0; j < this._datasource_Root_ActiveFormationClasses.Count; j++)
				{
					OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate(base.Context);
					GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate);
					OrderTroopItemFormationClassVM orderTroopItemFormationClassVM = this._datasource_Root_ActiveFormationClasses[j];
					generatedWidgetData.Data = orderTroopItemFormationClassVM;
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.AddComponent(generatedWidgetData);
					this._widget_0.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate, j);
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.CreateWidgets();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetIds();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetAttributes();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetDataSource(orderTroopItemFormationClassVM);
				}
			}
		}

		// Token: 0x060004EE RID: 1262 RVA: 0x00023B44 File Offset: 0x00021D44
		private void RefreshDataSource_datasource_Root_SelectionKey(InputKeyItemVM newDataSource)
		{
			if (this._datasource_Root_SelectionKey != null)
			{
				this._datasource_Root_SelectionKey.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
				this._datasource_Root_SelectionKey.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
				this._widget_3_0_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3_0_0;
				this._datasource_Root_SelectionKey = null;
			}
			this._datasource_Root_SelectionKey = newDataSource;
			this._datasource_Root_SelectionKey = this._datasource_Root.SelectionKey;
			if (this._datasource_Root_SelectionKey != null)
			{
				this._datasource_Root_SelectionKey.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
				this._datasource_Root_SelectionKey.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
				this._widget_3_0_0.KeyID = this._datasource_Root_SelectionKey.KeyID;
				this._widget_3_0_0.IsVisible = this._datasource_Root_SelectionKey.IsVisible;
				this._widget_3_0_0.PropertyChanged += this.PropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.intPropertyChanged += this.intPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_3_0_0;
			}
		}

		// Token: 0x060004EF RID: 1263 RVA: 0x00023EF0 File Offset: 0x000220F0
		private void RefreshDataSource_datasource_Root_CommanderImageIdentifier(ImageIdentifierVM newDataSource)
		{
			if (this._datasource_Root_CommanderImageIdentifier != null)
			{
				this._datasource_Root_CommanderImageIdentifier.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._widget_6.PropertyChanged -= this.PropertyChangedListenerOf_widget_6;
				this._widget_6.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_6;
				this._widget_6.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_6;
				this._widget_6.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_6;
				this._widget_6.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_6;
				this._widget_6.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_6;
				this._widget_6.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_6;
				this._widget_6.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_6;
				this._widget_6.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_6;
				this._datasource_Root_CommanderImageIdentifier = null;
			}
			this._datasource_Root_CommanderImageIdentifier = newDataSource;
			this._datasource_Root_CommanderImageIdentifier = this._datasource_Root.CommanderImageIdentifier;
			if (this._datasource_Root_CommanderImageIdentifier != null)
			{
				this._datasource_Root_CommanderImageIdentifier.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._widget_6.AdditionalArgs = this._datasource_Root_CommanderImageIdentifier.AdditionalArgs;
				this._widget_6.ImageId = this._datasource_Root_CommanderImageIdentifier.Id;
				this._widget_6.ImageTypeCode = this._datasource_Root_CommanderImageIdentifier.ImageTypeCode;
				this._widget_6.PropertyChanged += this.PropertyChangedListenerOf_widget_6;
				this._widget_6.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_6;
				this._widget_6.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_6;
				this._widget_6.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_6;
				this._widget_6.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_6;
				this._widget_6.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_6;
				this._widget_6.intPropertyChanged += this.intPropertyChangedListenerOf_widget_6;
				this._widget_6.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_6;
				this._widget_6.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_6;
			}
		}

		// Token: 0x060004F0 RID: 1264 RVA: 0x000242B0 File Offset: 0x000224B0
		private void RefreshDataSource_datasource_Root_ActiveFilters(MBBindingList<OrderTroopItemFilterVM> newDataSource)
		{
			if (this._datasource_Root_ActiveFilters != null)
			{
				this._datasource_Root_ActiveFilters.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
				for (int i = this._widget_7.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_7.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_7.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child2).SetDataSource(null);
					this._widget_7.RemoveChild(child2);
				}
				this._datasource_Root_ActiveFilters = null;
			}
			this._datasource_Root_ActiveFilters = newDataSource;
			this._datasource_Root_ActiveFilters = this._datasource_Root.ActiveFilters;
			if (this._datasource_Root_ActiveFilters != null)
			{
				this._datasource_Root_ActiveFilters.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
				for (int j = 0; j < this._datasource_Root_ActiveFilters.Count; j++)
				{
					OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate(base.Context);
					GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate);
					OrderTroopItemFilterVM orderTroopItemFilterVM = this._datasource_Root_ActiveFilters[j];
					generatedWidgetData.Data = orderTroopItemFilterVM;
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.AddComponent(generatedWidgetData);
					this._widget_7.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate, j);
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.CreateWidgets();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetIds();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetAttributes();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetDataSource(orderTroopItemFilterVM);
				}
			}
		}

		// Token: 0x040000BC RID: 188
		private OrderTroopItemBrushWidget _widget;

		// Token: 0x040000BD RID: 189
		private GridWidget _widget_0;

		// Token: 0x040000BE RID: 190
		private FillBar _widget_1;

		// Token: 0x040000BF RID: 191
		private ListPanel _widget_2;

		// Token: 0x040000C0 RID: 192
		private Widget _widget_2_0;

		// Token: 0x040000C1 RID: 193
		private TextWidget _widget_2_1;

		// Token: 0x040000C2 RID: 194
		private Widget _widget_3;

		// Token: 0x040000C3 RID: 195
		private Widget _widget_3_0;

		// Token: 0x040000C4 RID: 196
		private InputKeyVisualWidget _widget_3_0_0;

		// Token: 0x040000C5 RID: 197
		private SliderWidget _widget_4;

		// Token: 0x040000C6 RID: 198
		private Widget _widget_4_0;

		// Token: 0x040000C7 RID: 199
		private Widget _widget_4_1;

		// Token: 0x040000C8 RID: 200
		private Widget _widget_5;

		// Token: 0x040000C9 RID: 201
		private ImageIdentifierWidget _widget_6;

		// Token: 0x040000CA RID: 202
		private GridWidget _widget_7;

		// Token: 0x040000CB RID: 203
		private Widget _widget_8;

		// Token: 0x040000CC RID: 204
		private ListPanel _widget_8_0;

		// Token: 0x040000CD RID: 205
		private OrderItemButtonWidget _widget_8_0_0;

		// Token: 0x040000CE RID: 206
		private Widget _widget_8_0_0_0;

		// Token: 0x040000CF RID: 207
		private FormationMarkerParentWidget _widget_8_0_1;

		// Token: 0x040000D0 RID: 208
		private BrushWidget _widget_8_0_1_0;

		// Token: 0x040000D1 RID: 209
		private Widget _widget_8_0_1_0_0;

		// Token: 0x040000D2 RID: 210
		private OrderTroopItemVM _datasource_Root;

		// Token: 0x040000D3 RID: 211
		private MBBindingList<OrderTroopItemFormationClassVM> _datasource_Root_ActiveFormationClasses;

		// Token: 0x040000D4 RID: 212
		private InputKeyItemVM _datasource_Root_SelectionKey;

		// Token: 0x040000D5 RID: 213
		private ImageIdentifierVM _datasource_Root_CommanderImageIdentifier;

		// Token: 0x040000D6 RID: 214
		private MBBindingList<OrderTroopItemFilterVM> _datasource_Root_ActiveFilters;
	}
}
